# Jenkins 2.107.1
FROM yi/centos7-tomcat7
MAINTAINER Leon
RUN yum install -y git maven
#maven home : /usr/share/maven
WORKDIR /usr/local/apache-tomcat-7.0.85/webapps/ROOT/
RUN rm -fr ./*
RUN wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/war/2.190/jenkins.war 
RUN unzip jenkins.war
WORKDIR /usr/local/apache-tomcat-7.0.90/webapps/
RUN rm -fr docs
RUN rm -fr examples
RUN rm -fr manager
RUN rm -fr host-manager
EXPOSE 8080
ENTRYPOINT /usr/local/apache-tomcat-7.0.85/bin/startup.sh && tail -F /usr/local/apache-tomcat-7.0.85/logs/catalina.out
